import Message from 'element-ui/lib/message'
import 'element-ui/lib/theme-chalk/message.css'

const warn = (options) => {
  Message(Object.assign({}, options, {
    type: 'warning'
  }))
}
const success = (options) => {
  Message(Object.assign({}, options, {
    type: 'success'
  }))
}
const error = (options) => {
  Message(Object.assign({}, options, {
    type: 'error'
  }))
}

export {
  warn,
  error,
  success
}
